package com.Decorator;

/**
 * Created by Administrator on 2018/11/5/005.
 */
public class ConcreteComponent1 implements Component {

    private Component component;

    public ConcreteComponent1(Component component) {
        this.component = component;
    }

    public void doSomething() {
        component.doSomething();
        this.doAnothing();
    }

    public void doAnothing() {
        System.out.println("功能B");
    }
}
